#include<stdio.h>
int main(){

    int start=1,end=1000,i;
    int sum;

    sum=0;
    i=start;
    while(i<=end)
    {
        sum+=i;
        i++;
    }


    printf("%d\n",sum);
    return 0;
}
